<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>

<body>
    <div id="app">
        <!-- <input type="text" name="" id="" @keydown.enter="keyBoardEven"> -->
        <!-- keydown不区分大小写 -->
        <!-- <input type="text" name="" id="" @keydown.65="keyBoardEven"> -->
        <input type="text" name="" id="" @keydown.enter.ctrl="keyBoardEven">
        <!-- keypress区分大小写 -->
        <input type="text" name="" id="" @keypress.65="keyBoardEven">
    </div>

</body>
<script>
    var vm = new Vue({
        el: "#app",
        data: {},
        methods: {
            keyBoardEven() {
                // console.log("按下了回车键");
                // console.log("按下了A键");
                console.log("触发了快捷键");

            }

        }
    })
</script>

</html>